<template>
  <div>
    <saleCharts :saleData="data"></saleCharts>
    <h2>销售排行表</h2>
    <saleStatus></saleStatus>
  </div>
</template>

<script>
import { getSaleWeekData } from '@/api/index/index1'
import saleCharts from '../components/saleCharts'
import saleStatus from '../tables/saleStatus.vue'
export default {
  components: {
    saleCharts, saleStatus
  },
  data () {
    return {
      data: {
        day: ['周一', '周二', '周三', '周四', '周五', '周六', '周七'],
        value: [0, 0, 0, 0, 0, 0, 0]
      }
    }
  },
  mounted () {
    getSaleWeekData().then(res => {
      this.data = res.data
    })
  }
}
</script>
<style>
</style>
